Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support custom name parser #67

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

eatgrass
Copy link

@eatgrass eatgrass commented Jul 27, 2023

since this forked repository is used as part of the NvChad, so I think it would be great to be able to highlight the NvChad Base46 theme color by name, by adding the theme's color table to the custom option, for example

local reload_colorizer = function()
  local base_30 = require("base46").get_theme_tb "base_30"
  local base_16 = require("base46").get_theme_tb "base_16"
  require("colorizer").setup {
    user_default_options = {
      custom = vim.tbl_extend("keep", base_30, base_16),
    },
  }
end
...
-- Lazy 
{
  "NvChad/nvim-colorizer.lua",
  dependencies = "NvChad/base46",
  config = reload_colorizer,
},

so that we can highlight those names accordingly, it's especially useful when editing the highlight groups

image

@wvffle
Copy link

wvffle commented Nov 17, 2024

Could we get any info if this is ever going to be merged? Is there something missing from this feature or is it just forgotten?

@catgoose
Copy link
Collaborator

Could we get any info if this is ever going to be merged? Is there something missing from this feature or is it just forgotten?

I recently took over maintaining this plugin and I will definitely get to this as it is a feature I personally want as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants